package com.nsfocus.controller;

import com.nsfocus.domain.Country;
import com.nsfocus.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dell on 2018/1/5 0005.
 */
@RestController
public class CountryController {

    @Autowired
    CountryService countryService;

    @RequestMapping("/country/{id}")
    public Country getCountry(@PathVariable Integer id){
        return countryService.getCountry(id);
    }
}
